﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace Acme.BookStore.RoomTypes
{
    public class ResultDto
    {
        public virtual  StatusCode Code { get; set; } 
        public string Message { get; set; }
    }

    public class ResultDto<TData> : ResultDto
    {
        public TData Data { get; set; }

    }


    public enum StatusCode
    {
        [Description("成功")]
        Success = 200,
        [Description("失败")]
        Faield = 500,
    }

    public class APIPagIng<T>
    {
        public int Total { get; set; }
        public int TotalPage { get; set; }
        public List<T> Data { get; set; }
    }
}
